package com.peaksport.pkms.learn.day21.helloworld.provider;

import org.apache.servicecomb.provider.rest.common.RestSchema;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@RestSchema(schemaId="helloworld1")
@RequestMapping(path="/provider/v1")
public class HelloService2 {
	@RequestMapping(path="/hello1/{name}",method=RequestMethod.GET)
	public String sayHello1(@PathVariable(value="name") String name) {
		return "hello1 " + name;
	}
}
